package com.cg.design.graphicdesignpattern.abstractfactory.listfactory;

import com.cg.design.graphicdesignpattern.abstractfactory.factory.Link;

/**
 * 具体的零件：ListLink类，使用<li>标签和<a>标签制作HTML片段
 *
 * @program: LeetCode->ListLink
 * @description: 具体的零件：ListLink类，使用<li>标签和<a>标签制作HTML片段
 * @author: cg
 * @create: 2022-03-21 23:38
 **/
public class ListLink extends Link {
    public ListLink(String caption, String url) {
        super(caption, url);
    }

    @Override
    public String makeHTML() {
        return "\t<li><a href=\"" + url + "\">" + caption + "</a></li>\n";
    }
}
